

%cargamos moon

lf = fspecial('laplacian');

moon_lap = imfilter(moon, lf);
moon_enhanced = moon - moon_lap;

moon_d = double(moon)/256.0;
moon_d_lap = imfilter(moon_d, lf);
moon_d_enhanced = moon_d - moon_d_lap;

imshow(moon_lap, []);
figure;
imshow(moon_enhanced, []);
figure;
imshow(moon_d_lap, []);
figure;
imshow(moon_d_enhanced, []);